package com.function.service.impl;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.function.domain.User;
import com.function.service.UserService;
import com.function.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 * @author Mr-Wa
 * @description 针对表【user】的数据库操作Service实现
 * @createDate 2025-04-25 01:48:45
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
        implements UserService {

    @Override
    public User getOneByUniKey(SFunction<User, Object> column, Object columnValue) {
        return lambdaQuery().eq(column, columnValue).last("limit 1").one();
    }
}




